package cool.mtc.base.plugin.generator.code.model.template.bg;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 明河
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BgEntityTemplateParam extends BaseBgTemplateParam {

    private List<Field> fieldList = new ArrayList<>();

    @Override
    public String getTemplateRelativePath() {
        return "bg/entity.ftl";
    }

    @Override
    public String getBasePackage() {
        return this.getEntityBasePackage();
    }

    @Override
    public String getClassName() {
        return this.getClassPrefix() + "DO";
    }

    @Data
    public static class Field {
        private String name;
        private String type;
        private String comment;
        private String annotation;
    }
}
